/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tanks.items;

import com.sun.lwuit.Image;
import java.io.IOException;
import tanks.Cell;
import tanks.Tank;

/**
 *
 * @author Александр
 */
public class Healthpack extends Item
    {
        public Healthpack(Cell c)
        {
            C = c;
            try {
                Gr = Image.createImage("/images/healthpack.png");
            }
            catch(IOException ex){
                 ex.printStackTrace();
            }
        }
        protected void Pickup(Tank t)
        {
            t.setHealth(t.Health()+25);
            game.Items.removeElement(this);
        }
    }
